package com.jam.cloud.order.mapper;

import com.jam.cloud.order.pojo.Order;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderMapper {

    @Select("select * from j_order where id = #{id}")
    Order queryById(@Param("id") Long id);

    @Select("select * from j_order where user_id = #{userId}")
    List<Order> queryByUserId(@Param("userId") Long userId);

}
